package gui.actions;

import controller.Controller;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

/**
 * I don't even know what this is supposed to do anymore.
 */
public class ConnectAction extends AbstractAction {
	private static final long serialVersionUID = 1L;
	
	public ConnectAction(){
		super("Connect");
		putValue(SHORT_DESCRIPTION, "Establish connection");
		putValue(MNEMONIC_KEY, KeyEvent.VK_C);
	}
	
	@Override
	public void actionPerformed(ActionEvent arg0) {
		Controller.getInstance().connectActionFired();
	}
}
